home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Documentation / develop / develop Issue 20 / develop 20 code / QTTextSample / Aevt.h < prev    next >
Encoding:
Text File  |  1994-10-14  |  1.2 KB  |  40 lines  |  [TEXT/KAHL]

  1. // Simple framework for Macintosh sample code
  2. //
  3. // Nick Thompson, DEVSUPPORT
  4. //
  5. // This file contains the appleevent related code code for the framework.
  6. // 
  7. // 9/16/94    nick    first cut
  8.  
  9.  
  10. #ifndef _AEVT_H_
  11. #define _AEVT_H_
  12. #include <AppleEvents.h>
  13.  
  14.  
  15.  
  16. //--------------------------------------------------------------------------------------------
  17. // utility routines
  18.  
  19. void         InitAEStuff( void ) ;
  20. Boolean        SupportsAEVT(void) ;
  21. OSErr         MyGotRequiredParams(AppleEvent *theAppleEvent) ; 
  22. void        DoHighLevelEvent(EventRecord *ev) ;
  23. void        RegisterMyEvents(void) ;
  24.  
  25.  
  26. //--------------------------------------------------------------------------------------------
  27. // AppleEvent handlers
  28.  
  29. pascal OSErr MyAEHandleOAPP(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  30. pascal OSErr MyAEHandleODOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  31. pascal OSErr MyAEHandlePDOC(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  32. pascal OSErr MyAEHandleQUIT(AppleEvent *theAppleEvent,AppleEvent *reply,long refCon) ;
  33.  
  34. //--------------------------------------------------------------------------------------------
  35. // other routines
  36. void SendOpenDoc(FSSpec *myFSSpec) ;
  37. void SendQuitApp( void ) ;
  38.  
  39.  
  40. #endif